import axios from 'axios';
import {adminApiPath} from "./adminApiPath";

export interface BlogSetting {
    blogName: string;
    author: string;
    avatar: string;
    introduction: string;
    githubHome: string;
    csdnHome: string;
    giteeHome: string;
    zhihuHome: string;
}

const baseUrl = adminApiPath.admin.blogSetting;

export const getBlogSettingDetail = async () => {
    const res = await axios.post(baseUrl.detail);
    return res.data;
};

export const updateBlogSetting = async (data: any) => {
    const res = await axios.post(baseUrl.update, data);
    return res.data;
};
